<?php
class Clinks extends Zend_Db_Table{
	
	protected $_name;
	
	protected $_primary;
	
	public function _setup(){
		
		$this->_name=R_PRE."links";
		
		$this->_primary="id";
		
		parent::_setup();
		
	}
	
	public function create($data){

		$id=$this->insert($data);
		
		return $id;
		
	}
	public function show($pid){
		$db=$this->getAdapter();
		
		$select=$db->select();
		$select->where('pid = ? ',$pid);
		
		$select->from($this->_name,'*');
		return $db->fetchAll($select);
	}
}

?>